package com.neutech.entity;

import com.mybatisflex.annotation.Table;
import com.neutech.core.BaseEntity;
import java.io.Serializable;
import java.sql.Date;

import java.io.Serial;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.EqualsAndHashCode;

/**
 * 班级表 实体类。
 *
 * @author Administrator
 * @since 2025-02-08
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Schema(description = "班级表")
@Table("grade")
public class Grade extends BaseEntity implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    public Grade(Integer id, Integer active) {
        super(id);
        this.active = active;
    }

    /**
     * 班级名称
     */
    @Schema(description = "班级名称", type = "String")
    private String name;

    /**
     * 班级简称
     */
    @Schema(description = "班级简称", type = "String")
    private String subName;



    /**
     * 教室号
     */
    @Schema(description = "教室号", type = "String")
    private String room;



    /**
     * 开班时间
     */
    @Schema(description = "开班时间", type = "Date")
    private Date startDate;

    /**
     * 结束日期
     */
    @Schema(description = "结束日期", type = "Date")
    private Date endDate;

    /**
     * 状态
     */
    @Schema(description = "状态", type = "Integer")
    private Integer active;


}
